{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "C:\\Users\\18202\\AppData\\Local\\Temp\\ipykernel_25604\\3403648306.py:1: ParserWarning: Falling back to the 'python' engine because the 'c' engine does not support skipfooter; you can avoid this warning by specifying engine='python'.\n",
      "  longdata=pd.read_table(r\"data/10.txt\",\n",
      "C:\\Users\\18202\\AppData\\Local\\Temp\\ipykernel_25604\\3403648306.py:7: ParserWarning: Falling back to the 'python' engine because the 'c' engine does not support regex separators (separators > 1 char and different from '\\s+' are interpreted as regex); you can avoid this warning by specifying engine='python'.\n",
      "  ladata=pd.read_table(r\"data/10.txt\",\n"
     ]
    }
   ],
   "source": [
    "longdata=pd.read_table(r\"data/10.txt\",\n",
    "                    header=None,\n",
    "                    skiprows=3,\n",
    "                    skipfooter=17,\n",
    "                     sep='  '\n",
    "                     )\n",
    "ladata=pd.read_table(r\"data/10.txt\",\n",
    "                    header=None,\n",
    "                    skipfooter=0,\n",
    "                    skiprows=20,\n",
    "                    sep=\"  \"\n",
    "                    )"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "longdata.to_csv(\"longdata.csv\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "ladata.to_csv(\"latdata.csv\")"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "ml",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.14"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
